/**
 * Authority domain class.
 */
class Permissao {

	static hasMany = [people: Usuario]
        static belongsTo = Usuario
	/** description */
	String description
	/** ROLE String */
	String authority
	static constraints = {
		authority(blank: false, unique: true)
		description(blank: false, unique: true)
	}


   String toString(){
        return "${this.authority}"
    }
     static mapping = {
            table "TB_PERMISSAO"
      //       id generator: 'sequence' ,params:[sequence:'tb_permissao_id_seq']
            version false
            description column : "DS_DESCRICAO"
            authority column : "DS_AUTHORITY"

        }



}
